package com.wanhe.base.model.base;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2016-08-23.
 */
public class TableState implements Parcelable {

    public static final int SUCCESS = 1;
    public static final int FAILE = 0;

    public int Code;
    public String jsonStr;

    public int getCode() {
        return Code;
    }

    public void setCode(int code) {
        Code = code;
    }

    public String getJsonStr() {
        return jsonStr;
    }

    public void setJsonStr(String jsonStr) {
        this.jsonStr = jsonStr;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.Code);
        dest.writeString(this.jsonStr);
    }

    public TableState() {
    }

    protected TableState(Parcel in) {
        this.Code = in.readInt();
        this.jsonStr = in.readString();
    }

    public static final Creator<TableState> CREATOR = new Creator<TableState>() {
        @Override
        public TableState createFromParcel(Parcel source) {
            return new TableState(source);
        }

        @Override
        public TableState[] newArray(int size) {
            return new TableState[size];
        }
    };
}
